<?php  $this->load->view('admin/adv/link_bar');?>
<form action="<?php echo site_url('admin/adv/save');?>" method="post" name="frmTab" enctype="multipart/form-data">
	<div class="box_function">
		<table width="747" border="0" cellpadding="0" cellspacing="0" class="listproduct" id="listproduct">
	<tr>
		<td colspan="2" style="padding:5px">
				<?php echo $error_message?>
			</td>
		</tr>
				
		<tr>
			<td style="padding:5px"><?php echo lang('name');?></td>
			<td>
				<input size="35" name="txtName" value="<?php echo set_value('txtName', $name)?>" type="text"><span class="red">*</span>
			</td>
		</tr>
		
		<tr>
			<td style="padding:5px"><?php echo lang('link_to');?></td>
			<td>
				<input size="35" name="txtLinkTo" value="<?php echo set_value('txtLinkTo', $link_to)?>" type="text"><span class="red">*</span>
			</td>
		</tr>
		
		<tr>
			<td style="padding:5px"><?php echo lang('position_view');?></td>
			<td>
				<?php 
				echo form_radio('position', 'left', $position=='left' ? true : false) . lang('left');
				echo '&nbsp;';
                echo form_radio('position', 'right', $position=='right' ? true : false) . lang('right');
				echo '&nbsp;';
				echo form_radio('position', 'bottom', $position=='bottom' ? true : false) . lang('bottom');
				echo '&nbsp;';
				echo form_radio('position', 'center', $position=='center' ? true : false) . lang('center');
				?>
				
				<span class="red">*</span>
			</td>
		</tr>
		
		<tr>
			<td style="padding:5px"><?php echo lang('active');?></td>
			<td>
				<input type="checkbox" name="active" value="1" <?php echo $active==1 ? 'checked="checked"' : ''?> />
			</td>
		</tr>
		
		<tr>
			<td style="padding:5px"><?php echo lang('picture');?></td>
			<td>
				<input type="file" name="file" id="file"/>
			</td>
		</tr>
		
		<tr>
			<td><br></td>
			<td>
				<span class="red"><?php echo lang('the_item_are_mark_are_required')?></span>
			</td>
		</tr>
		
		<tr>
			<td></td>
			<td>
				<input value="<?php echo lang('save')?>" name="btSave" class="button" type="submit">
			</td>
		</tr>
		
	</table>
	</div>
	<input type="hidden" name="txtID" id="txtID" value="<?php echo $id?>" />
</form>